_pos = [(_this select 0) select 0,(_this select 0) select 1,0];
_baseObj = _this select 1
_basePos = [getpos _baseObj select 0, getpos _baseObj select 1,0] 
_aiSide = _this select 2

#Portselected


?(_aiSide == side0) : veh = createVehicle [side0_AAVeh, _basePos, [], 0, "NONE"];
?(_aiSide == side1) : veh = createVehicle [side1_AAVeh, _basePos, [], 0, "NONE"];
_veh = veh
?(_aiSide == side0): _grp = createGroup side0
?(_aiSide == side1): _grp = createGroup side1

?(_aiSide == side0) : transportPilot = _grp createUnit [side0_crew, [0,0], [], 100, "FORM"];
?(_aiSide == side1) : transportPilot = _grp createUnit [side1_crew, [0,0], [], 100, "FORM"];

?(_aiSide == side0) : transportGunner = _grp createUnit [side0_crew, [0,0], [], 100, "FORM"];
?(_aiSide == side1) : transportGunner = _grp createUnit [side1_crew, [0,0], [], 100, "FORM"];

?(dev) : player sidechat "AI just bought an airstrike"

_unit = transportPilot
_gunner = transportGunner
[_unit,_gunner] join _grp
_unit moveindriver _Veh
_unit move _pos
_gunner moveingunner _veh

_unit setCombatMode "YELLOW"
_gunner setCombatMode "YELLOW"
_gunner setskill 1
_unit setskill 1

_veh addEventHandler ["killed", {_this exec "server\coop\ai\killedBy.sqs"}]
[_grp] exec "server\deleteGroup.sqs"

Add_MarkersGroup = _grp
Add_MarkersType = "AntiAir"


Add_Markers = true

PublicVariable "Add_MarkersGroup"
PublicVariable "Add_MarkersType"
PublicVariable "Add_Markers"
